package cookinmaddy.database.spod;

/**
 * ...
 * @author Yog
 */

 
import php.Lib;
 
class DBUser extends php.db.Object
{
	static var TABLE_NAME = "cookinuser";
	static var TABLE_IDS = "usr_login";
	
	public static var DROP_REQUEST = "drop table " + TABLE_NAME + ";";
	public static var CREATION_REQUEST_V1 = "create table " + TABLE_NAME + " " +
	"( " +
		"usr_login varchar(15) primary key, " +
		"usr_name varchar(20) not null, " +
		"usr_surname varchar(20) not null, " +
		"usr_email varchar(30) not null " +
	");" ;
	
	var usr_login : String;
	var usr_name : String;
	var usr_surname : String;
	var usr_email  : String;
	
	public static var manager = new php.db.Manager<DBUser>(DBUser);
}